"""


"""
from rest_framework.generics import ListAPIView, CreateAPIView, RetrieveAPIView, UpdateAPIView, DestroyAPIView
from rest_framework.viewsets import ModelViewSet

from goods.models import SPUSpecification
from meiduo_admin.my_pagination import MyPageNumberPagination
from meiduo_admin.serializers import goods_specs_serializers


class GoodSpecsViewSet(ModelViewSet):
    serializer_class = goods_specs_serializers.SPUSpecSerializer
    queryset = SPUSpecification.objects.all()
    pagination_class = MyPageNumberPagination


# class GoodSpecsView(ListAPIView, CreateAPIView):
#     serializer_class = goods_specs_serializers.SPUSpecSerializer
#     queryset = SPUSpecification.objects.all()
#     pagination_class = MyPageNumberPagination
#
#
# class ChangeGoodSpecsView(ListAPIView, UpdateAPIView, DestroyAPIView):
#     def get_queryset(self):
#         pk = self.kwargs.get("pk")
#         specs = SPUSpecification.objects.filter(id=pk)
#         return specs
#
#     serializer_class = goods_specs_serializers.SPUSpecSerializer

